package sv.com.renacempleo.dto.red;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgDocumentos;

@Entity
@Table(name="red_documentos_demandante")
public class RedDocumentosDemandante {
	@Id
	@Column(name = "red_documdem_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redDocumentoDemandanteId;
	@ManyToOne(fetch= FetchType.LAZY)
	@JoinColumn(name = "red_dem_folio", nullable = false)
	private RedDemandantes redDemandante;
	@ManyToOne(fetch= FetchType.LAZY)
	@JoinColumn(name = "ctg_doc_id", nullable = false)
	private CtgDocumentos ctgDocumentos;
	
	public Long getRedDocumentoDemandanteId() {
		return redDocumentoDemandanteId;
	}
	public void setRedDocumentoDemandanteId(Long redDocumentoDemandanteId) {
		this.redDocumentoDemandanteId = redDocumentoDemandanteId;
	}
	public RedDemandantes getRedDemandante() {
		return redDemandante;
	}
	public void setRedDemandante(RedDemandantes redDemandante) {
		this.redDemandante = redDemandante;
	}
	public CtgDocumentos getCtgDocumentos() {
		return ctgDocumentos;
	}
	public void setCtgDocumentos(CtgDocumentos ctgDocumentos) {
		this.ctgDocumentos = ctgDocumentos;
	}

}
